CC = gcc
EDJE_CC = edje_cc
EDJE_CC_FLAGS = -v
EVAS_CFLAGS = `pkg-config --cflags ecore ecore-evas edje evas`
EVAS_LIBS = `pkg-config --libs ecore ecore-evas edje evas`

all: image_preview

image_preview: main.o image_container_smart.o
	$(CC) -g -Wall $(LIBS) $(EVAS_LIBS) -lpthread $^ -o $@

%.o: %.c
	$(CC) -g -Wall $(CFLAGS) $(EVAS_CFLAGS) -c $^ -o $@

clean:
	rm -f *.o image_preview

.PHONY: all clean
